package hxy.scan.server;


public class Teacher { void have(String 课程名) {
        System.out.println(课程名);
    }


    public static void main(String[] args) {
        // 新建 Teacher 对像
        // new
        Teacher teacher = new Teacher();
        teacher.have("物理");
        teacher.have("化学");
        teacher.have("生物");
        teacher.have("地理");
        teacher.have("经济学");




    }


}
